#!/usr/bin/python3
#
# 计算定期存款利率


balance = 0
month = 12
rate_month = 0.078 / 12
deposit = 6666.667 + 304

print("rate of month: %f%%" % (rate_month * 100))
# rate_month = 0.38 / 100
for i in range(1, 13):
    balance = balance + deposit + (deposit + balance) * rate_month
    print("month: %2d, balance: %f, rate: %f" % (i, balance, balance - deposit * i))

print("by day....")
balance_day = 0
rate_day = 0.05 / 360

for i in range(361):
    if i % 30 == 0:
        balance_day = balance_day + deposit  # 每月开始存入
    rate_per_day = balance_day * rate_day
    balance_day = balance_day + rate_per_day
    if i > 0 and (i+1) % 30 == 0:
        print("day : %3d, balance: %f, rate: %f, total_rate: %f" % (i + 1, balance_day, rate_per_day, balance_day - deposit * (i // 30 + 1)))

total = 80000
month_i = 80000 / 12
for i in range(12):
    print("total=%f, rate: %f" % (total, 304 / total))
    total = total - month_i

'''
rate of month: 0.416667%
month:  1, balance: 10041.666667, rate: 41.666667
month:  2, balance: 20125.173611, rate: 125.173611
month:  3, balance: 30250.695168, rate: 250.695168
month:  4, balance: 40418.406398, rate: 418.406398
month:  5, balance: 50628.483091, rate: 628.483091
month:  6, balance: 60881.101771, rate: 881.101771
month:  7, balance: 71176.439695, rate: 1176.439695
month:  8, balance: 81514.674860, rate: 1514.674860
month:  9, balance: 91895.986005, rate: 1895.986005
month: 10, balance: 102320.552614, rate: 2320.552614
month: 11, balance: 112788.554916, rate: 2788.554916
month: 12, balance: 123300.173895, rate: 3300.173895
3300.173894977008
day :   0, balance: 10001.369863, rate: 1.369863, total_rate: 1.369863
day :   1, balance: 10002.739914, rate: 1.370051, total_rate: 2.739914
day :   2, balance: 10004.110152, rate: 1.370238, total_rate: 4.110152
day :   3, balance: 10005.480578, rate: 1.370426, total_rate: 5.480578
day :   4, balance: 10006.851192, rate: 1.370614, total_rate: 6.851192
day :   5, balance: 10008.221993, rate: 1.370802, total_rate: 8.221993
day :   6, balance: 10009.592983, rate: 1.370989, total_rate: 9.592983
day :   7, balance: 10010.964160, rate: 1.371177, total_rate: 10.964160
day :   8, balance: 10012.335525, rate: 1.371365, total_rate: 12.335525
day :   9, balance: 10013.707078, rate: 1.371553, total_rate: 13.707078
day :  10, balance: 10015.078818, rate: 1.371741, total_rate: 15.078818
day :  11, balance: 10016.450747, rate: 1.371929, total_rate: 16.450747
day :  12, balance: 10017.822863, rate: 1.372117, total_rate: 17.822863
day :  13, balance: 10019.195168, rate: 1.372305, total_rate: 19.195168
day :  14, balance: 10020.567660, rate: 1.372492, total_rate: 20.567660
day :  15, balance: 10021.940341, rate: 1.372681, total_rate: 21.940341
day :  16, balance: 10023.313209, rate: 1.372869, total_rate: 23.313209
day :  17, balance: 10024.686266, rate: 1.373057, total_rate: 24.686266
day :  18, balance: 10026.059511, rate: 1.373245, total_rate: 26.059511
day :  19, balance: 10027.432944, rate: 1.373433, total_rate: 27.432944
day :  20, balance: 10028.806565, rate: 1.373621, total_rate: 28.806565
day :  21, balance: 10030.180374, rate: 1.373809, total_rate: 30.180374
day :  22, balance: 10031.554371, rate: 1.373997, total_rate: 31.554371
day :  23, balance: 10032.928556, rate: 1.374186, total_rate: 32.928556
day :  24, balance: 10034.302930, rate: 1.374374, total_rate: 34.302930
day :  25, balance: 10035.677492, rate: 1.374562, total_rate: 35.677492
day :  26, balance: 10037.052243, rate: 1.374750, total_rate: 37.052243
day :  27, balance: 10038.427181, rate: 1.374939, total_rate: 38.427181
day :  28, balance: 10039.802308, rate: 1.375127, total_rate: 39.802308
day :  29, balance: 10041.177624, rate: 1.375315, total_rate: 41.177624
day :  30, balance: 20043.922990, rate: 2.745367, total_rate: 43.922990
day :  31, balance: 20046.668733, rate: 2.745743, total_rate: 46.668733
day :  32, balance: 20049.414852, rate: 2.746119, total_rate: 49.414852
day :  33, balance: 20052.161348, rate: 2.746495, total_rate: 52.161348
day :  34, balance: 20054.908219, rate: 2.746871, total_rate: 54.908219
day :  35, balance: 20057.655467, rate: 2.747248, total_rate: 57.655467
day :  36, balance: 20060.403091, rate: 2.747624, total_rate: 60.403091
day :  37, balance: 20063.151091, rate: 2.748000, total_rate: 63.151091
day :  38, balance: 20065.899468, rate: 2.748377, total_rate: 65.899468
day :  39, balance: 20068.648221, rate: 2.748753, total_rate: 68.648221
day :  40, balance: 20071.397351, rate: 2.749130, total_rate: 71.397351
day :  41, balance: 20074.146858, rate: 2.749506, total_rate: 74.146858
day :  42, balance: 20076.896741, rate: 2.749883, total_rate: 76.896741
day :  43, balance: 20079.647001, rate: 2.750260, total_rate: 79.647001
day :  44, balance: 20082.397637, rate: 2.750637, total_rate: 82.397637
day :  45, balance: 20085.148651, rate: 2.751013, total_rate: 85.148651
day :  46, balance: 20087.900041, rate: 2.751390, total_rate: 87.900041
day :  47, balance: 20090.651808, rate: 2.751767, total_rate: 90.651808
day :  48, balance: 20093.403952, rate: 2.752144, total_rate: 93.403952
day :  49, balance: 20096.156473, rate: 2.752521, total_rate: 96.156473
day :  50, balance: 20098.909371, rate: 2.752898, total_rate: 98.909371
day :  51, balance: 20101.662647, rate: 2.753275, total_rate: 101.662647
day :  52, balance: 20104.416299, rate: 2.753652, total_rate: 104.416299
day :  53, balance: 20107.170329, rate: 2.754030, total_rate: 107.170329
day :  54, balance: 20109.924736, rate: 2.754407, total_rate: 109.924736
day :  55, balance: 20112.679520, rate: 2.754784, total_rate: 112.679520
day :  56, balance: 20115.434681, rate: 2.755162, total_rate: 115.434681
day :  57, balance: 20118.190220, rate: 2.755539, total_rate: 118.190220
day :  58, balance: 20120.946137, rate: 2.755916, total_rate: 120.946137
day :  59, balance: 20123.702431, rate: 2.756294, total_rate: 123.702431
day :  60, balance: 30127.828965, rate: 4.126535, total_rate: 127.828965
day :  61, balance: 30131.956065, rate: 4.127100, total_rate: 131.956065
day :  62, balance: 30136.083730, rate: 4.127665, total_rate: 136.083730
day :  63, balance: 30140.211961, rate: 4.128231, total_rate: 140.211961
day :  64, balance: 30144.340757, rate: 4.128796, total_rate: 144.340757
day :  65, balance: 30148.470119, rate: 4.129362, total_rate: 148.470119
day :  66, balance: 30152.600046, rate: 4.129927, total_rate: 152.600046
day :  67, balance: 30156.730540, rate: 4.130493, total_rate: 156.730540
day :  68, balance: 30160.861599, rate: 4.131059, total_rate: 160.861599
day :  69, balance: 30164.993223, rate: 4.131625, total_rate: 164.993223
day :  70, balance: 30169.125414, rate: 4.132191, total_rate: 169.125414
day :  71, balance: 30173.258171, rate: 4.132757, total_rate: 173.258171
day :  72, balance: 30177.391494, rate: 4.133323, total_rate: 177.391494
day :  73, balance: 30181.525383, rate: 4.133889, total_rate: 181.525383
day :  74, balance: 30185.659839, rate: 4.134456, total_rate: 185.659839
day :  75, balance: 30189.794861, rate: 4.135022, total_rate: 189.794861
day :  76, balance: 30193.930449, rate: 4.135588, total_rate: 193.930449
day :  77, balance: 30198.066604, rate: 4.136155, total_rate: 198.066604
day :  78, balance: 30202.203326, rate: 4.136721, total_rate: 202.203326
day :  79, balance: 30206.340614, rate: 4.137288, total_rate: 206.340614
day :  80, balance: 30210.478469, rate: 4.137855, total_rate: 210.478469
day :  81, balance: 30214.616890, rate: 4.138422, total_rate: 214.616890
day :  82, balance: 30218.755879, rate: 4.138989, total_rate: 218.755879
day :  83, balance: 30222.895434, rate: 4.139556, total_rate: 222.895434
day :  84, balance: 30227.035557, rate: 4.140123, total_rate: 227.035557
day :  85, balance: 30231.176247, rate: 4.140690, total_rate: 231.176247
day :  86, balance: 30235.317504, rate: 4.141257, total_rate: 235.317504
day :  87, balance: 30239.459328, rate: 4.141824, total_rate: 239.459328
day :  88, balance: 30243.601720, rate: 4.142392, total_rate: 243.601720
day :  89, balance: 30247.744679, rate: 4.142959, total_rate: 247.744679
day :  90, balance: 40253.258069, rate: 5.513390, total_rate: 253.258069
day :  91, balance: 40258.772214, rate: 5.514145, total_rate: 258.772214
day :  92, balance: 40264.287114, rate: 5.514900, total_rate: 264.287114
day :  93, balance: 40269.802770, rate: 5.515656, total_rate: 269.802770
day :  94, balance: 40275.319181, rate: 5.516411, total_rate: 275.319181
day :  95, balance: 40280.836348, rate: 5.517167, total_rate: 280.836348
day :  96, balance: 40286.354271, rate: 5.517923, total_rate: 286.354271
day :  97, balance: 40291.872950, rate: 5.518679, total_rate: 291.872950
day :  98, balance: 40297.392384, rate: 5.519435, total_rate: 297.392384
day :  99, balance: 40302.912575, rate: 5.520191, total_rate: 302.912575
day : 100, balance: 40308.433522, rate: 5.520947, total_rate: 308.433522
day : 101, balance: 40313.955225, rate: 5.521703, total_rate: 313.955225
day : 102, balance: 40319.477685, rate: 5.522460, total_rate: 319.477685
day : 103, balance: 40325.000901, rate: 5.523216, total_rate: 325.000901
day : 104, balance: 40330.524874, rate: 5.523973, total_rate: 330.524874
day : 105, balance: 40336.049603, rate: 5.524729, total_rate: 336.049603
day : 106, balance: 40341.575089, rate: 5.525486, total_rate: 341.575089
day : 107, balance: 40347.101332, rate: 5.526243, total_rate: 347.101332
day : 108, balance: 40352.628333, rate: 5.527000, total_rate: 352.628333
day : 109, balance: 40358.156090, rate: 5.527757, total_rate: 358.156090
day : 110, balance: 40363.684604, rate: 5.528515, total_rate: 363.684604
day : 111, balance: 40369.213876, rate: 5.529272, total_rate: 369.213876
day : 112, balance: 40374.743906, rate: 5.530029, total_rate: 374.743906
day : 113, balance: 40380.274692, rate: 5.530787, total_rate: 380.274692
day : 114, balance: 40385.806237, rate: 5.531544, total_rate: 385.806237
day : 115, balance: 40391.338539, rate: 5.532302, total_rate: 391.338539
day : 116, balance: 40396.871599, rate: 5.533060, total_rate: 396.871599
day : 117, balance: 40402.405417, rate: 5.533818, total_rate: 402.405417
day : 118, balance: 40407.939993, rate: 5.534576, total_rate: 407.939993
day : 119, balance: 40413.475328, rate: 5.535334, total_rate: 413.475328
day : 120, balance: 50420.381283, rate: 6.905956, total_rate: 420.381283
day : 121, balance: 50427.288185, rate: 6.906902, total_rate: 427.288185
day : 122, balance: 50434.196032, rate: 6.907848, total_rate: 434.196032
day : 123, balance: 50441.104826, rate: 6.908794, total_rate: 441.104826
day : 124, balance: 50448.014567, rate: 6.909740, total_rate: 448.014567
day : 125, balance: 50454.925254, rate: 6.910687, total_rate: 454.925254
day : 126, balance: 50461.836887, rate: 6.911634, total_rate: 461.836887
day : 127, balance: 50468.749468, rate: 6.912580, total_rate: 468.749468
day : 128, balance: 50475.662995, rate: 6.913527, total_rate: 475.662995
day : 129, balance: 50482.577469, rate: 6.914474, total_rate: 482.577469
day : 130, balance: 50489.492891, rate: 6.915422, total_rate: 489.492891
day : 131, balance: 50496.409260, rate: 6.916369, total_rate: 496.409260
day : 132, balance: 50503.326576, rate: 6.917316, total_rate: 503.326576
day : 133, balance: 50510.244840, rate: 6.918264, total_rate: 510.244840
day : 134, balance: 50517.164052, rate: 6.919212, total_rate: 517.164052
day : 135, balance: 50524.084211, rate: 6.920159, total_rate: 524.084211
day : 136, balance: 50531.005319, rate: 6.921107, total_rate: 531.005319
day : 137, balance: 50537.927374, rate: 6.922056, total_rate: 537.927374
day : 138, balance: 50544.850378, rate: 6.923004, total_rate: 544.850378
day : 139, balance: 50551.774330, rate: 6.923952, total_rate: 551.774330
day : 140, balance: 50558.699231, rate: 6.924901, total_rate: 558.699231
day : 141, balance: 50565.625080, rate: 6.925849, total_rate: 565.625080
day : 142, balance: 50572.551878, rate: 6.926798, total_rate: 572.551878
day : 143, balance: 50579.479625, rate: 6.927747, total_rate: 579.479625
day : 144, balance: 50586.408320, rate: 6.928696, total_rate: 586.408320
day : 145, balance: 50593.337965, rate: 6.929645, total_rate: 593.337965
day : 146, balance: 50600.268560, rate: 6.930594, total_rate: 600.268560
day : 147, balance: 50607.200103, rate: 6.931544, total_rate: 607.200103
day : 148, balance: 50614.132596, rate: 6.932493, total_rate: 614.132596
day : 149, balance: 50621.066039, rate: 6.933443, total_rate: 621.066039
day : 150, balance: 60629.370295, rate: 8.304256, total_rate: 629.370295
day : 151, balance: 60637.675688, rate: 8.305393, total_rate: 637.675688
day : 152, balance: 60645.982219, rate: 8.306531, total_rate: 645.982219
day : 153, balance: 60654.289888, rate: 8.307669, total_rate: 654.289888
day : 154, balance: 60662.598695, rate: 8.308807, total_rate: 662.598695
day : 155, balance: 60670.908640, rate: 8.309945, total_rate: 670.908640
day : 156, balance: 60679.219723, rate: 8.311083, total_rate: 679.219723
day : 157, balance: 60687.531945, rate: 8.312222, total_rate: 687.531945
day : 158, balance: 60695.845305, rate: 8.313361, total_rate: 695.845305
day : 159, balance: 60704.159805, rate: 8.314499, total_rate: 704.159805
day : 160, balance: 60712.475443, rate: 8.315638, total_rate: 712.475443
day : 161, balance: 60720.792221, rate: 8.316777, total_rate: 720.792221
day : 162, balance: 60729.110137, rate: 8.317917, total_rate: 729.110137
day : 163, balance: 60737.429193, rate: 8.319056, total_rate: 737.429193
day : 164, balance: 60745.749389, rate: 8.320196, total_rate: 745.749389
day : 165, balance: 60754.070725, rate: 8.321336, total_rate: 754.070725
day : 166, balance: 60762.393200, rate: 8.322475, total_rate: 762.393200
day : 167, balance: 60770.716816, rate: 8.323616, total_rate: 770.716816
day : 168, balance: 60779.041571, rate: 8.324756, total_rate: 779.041571
day : 169, balance: 60787.367468, rate: 8.325896, total_rate: 787.367468
day : 170, balance: 60795.694504, rate: 8.327037, total_rate: 795.694504
day : 171, balance: 60804.022682, rate: 8.328177, total_rate: 804.022682
day : 172, balance: 60812.352000, rate: 8.329318, total_rate: 812.352000
day : 173, balance: 60820.682459, rate: 8.330459, total_rate: 820.682459
day : 174, balance: 60829.014059, rate: 8.331600, total_rate: 829.014059
day : 175, balance: 60837.346801, rate: 8.332742, total_rate: 837.346801
day : 176, balance: 60845.680684, rate: 8.333883, total_rate: 845.680684
day : 177, balance: 60854.015709, rate: 8.335025, total_rate: 854.015709
day : 178, balance: 60862.351875, rate: 8.336167, total_rate: 862.351875
day : 179, balance: 60870.689184, rate: 8.337308, total_rate: 870.689184
day : 180, balance: 70880.397497, rate: 9.708314, total_rate: 880.397497
day : 181, balance: 70890.107141, rate: 9.709643, total_rate: 890.107141
day : 182, balance: 70899.818114, rate: 9.710974, total_rate: 899.818114
day : 183, balance: 70909.530418, rate: 9.712304, total_rate: 909.530418
day : 184, balance: 70919.244053, rate: 9.713634, total_rate: 919.244053
day : 185, balance: 70928.959017, rate: 9.714965, total_rate: 928.959017
day : 186, balance: 70938.675313, rate: 9.716296, total_rate: 938.675313
day : 187, balance: 70948.392940, rate: 9.717627, total_rate: 948.392940
day : 188, balance: 70958.111898, rate: 9.718958, total_rate: 958.111898
day : 189, balance: 70967.832187, rate: 9.720289, total_rate: 967.832187
day : 190, balance: 70977.553808, rate: 9.721621, total_rate: 977.553808
day : 191, balance: 70987.276761, rate: 9.722953, total_rate: 987.276761
day : 192, balance: 70997.001045, rate: 9.724284, total_rate: 997.001045
day : 193, balance: 71006.726662, rate: 9.725617, total_rate: 1006.726662
day : 194, balance: 71016.453611, rate: 9.726949, total_rate: 1016.453611
day : 195, balance: 71026.181892, rate: 9.728281, total_rate: 1026.181892
day : 196, balance: 71035.911506, rate: 9.729614, total_rate: 1035.911506
day : 197, balance: 71045.642453, rate: 9.730947, total_rate: 1045.642453
day : 198, balance: 71055.374732, rate: 9.732280, total_rate: 1055.374732
day : 199, balance: 71065.108345, rate: 9.733613, total_rate: 1065.108345
day : 200, balance: 71074.843292, rate: 9.734946, total_rate: 1074.843292
day : 201, balance: 71084.579572, rate: 9.736280, total_rate: 1084.579572
day : 202, balance: 71094.317185, rate: 9.737614, total_rate: 1094.317185
day : 203, balance: 71104.056133, rate: 9.738948, total_rate: 1104.056133
day : 204, balance: 71113.796415, rate: 9.740282, total_rate: 1113.796415
day : 205, balance: 71123.538030, rate: 9.741616, total_rate: 1123.538030
day : 206, balance: 71133.280981, rate: 9.742950, total_rate: 1133.280981
day : 207, balance: 71143.025266, rate: 9.744285, total_rate: 1143.025266
day : 208, balance: 71152.770886, rate: 9.745620, total_rate: 1152.770886
day : 209, balance: 71162.517841, rate: 9.746955, total_rate: 1162.517841
day : 210, balance: 81173.635994, rate: 11.118153, total_rate: 1173.635994
day : 211, balance: 81184.755670, rate: 11.119676, total_rate: 1184.755670
day : 212, balance: 81195.876869, rate: 11.121199, total_rate: 1195.876869
day : 213, balance: 81206.999592, rate: 11.122723, total_rate: 1206.999592
day : 214, balance: 81218.123839, rate: 11.124247, total_rate: 1218.123839
day : 215, balance: 81229.249609, rate: 11.125770, total_rate: 1229.249609
day : 216, balance: 81240.376904, rate: 11.127294, total_rate: 1240.376904
day : 217, balance: 81251.505722, rate: 11.128819, total_rate: 1251.505722
day : 218, balance: 81262.636066, rate: 11.130343, total_rate: 1262.636066
day : 219, balance: 81273.767934, rate: 11.131868, total_rate: 1273.767934
day : 220, balance: 81284.901327, rate: 11.133393, total_rate: 1284.901327
day : 221, balance: 81296.036245, rate: 11.134918, total_rate: 1296.036245
day : 222, balance: 81307.172688, rate: 11.136443, total_rate: 1307.172688
day : 223, balance: 81318.310657, rate: 11.137969, total_rate: 1318.310657
day : 224, balance: 81329.450151, rate: 11.139495, total_rate: 1329.450151
day : 225, balance: 81340.591172, rate: 11.141021, total_rate: 1340.591172
day : 226, balance: 81351.733719, rate: 11.142547, total_rate: 1351.733719
day : 227, balance: 81362.877792, rate: 11.144073, total_rate: 1362.877792
day : 228, balance: 81374.023391, rate: 11.145600, total_rate: 1374.023391
day : 229, balance: 81385.170518, rate: 11.147126, total_rate: 1385.170518
day : 230, balance: 81396.319171, rate: 11.148653, total_rate: 1396.319171
day : 231, balance: 81407.469352, rate: 11.150181, total_rate: 1407.469352
day : 232, balance: 81418.621060, rate: 11.151708, total_rate: 1418.621060
day : 233, balance: 81429.774296, rate: 11.153236, total_rate: 1429.774296
day : 234, balance: 81440.929060, rate: 11.154764, total_rate: 1440.929060
day : 235, balance: 81452.085351, rate: 11.156292, total_rate: 1452.085351
day : 236, balance: 81463.243171, rate: 11.157820, total_rate: 1463.243171
day : 237, balance: 81474.402520, rate: 11.159348, total_rate: 1474.402520
day : 238, balance: 81485.563397, rate: 11.160877, total_rate: 1485.563397
day : 239, balance: 81496.725803, rate: 11.162406, total_rate: 1496.725803
day : 240, balance: 91509.259601, rate: 12.533798, total_rate: 1509.259601
day : 241, balance: 91521.795116, rate: 12.535515, total_rate: 1521.795116
day : 242, balance: 91534.332348, rate: 12.537232, total_rate: 1534.332348
day : 243, balance: 91546.871297, rate: 12.538950, total_rate: 1546.871297
day : 244, balance: 91559.411965, rate: 12.540667, total_rate: 1559.411965
day : 245, balance: 91571.954350, rate: 12.542385, total_rate: 1571.954350
day : 246, balance: 91584.498453, rate: 12.544103, total_rate: 1584.498453
day : 247, balance: 91597.044275, rate: 12.545822, total_rate: 1597.044275
day : 248, balance: 91609.591815, rate: 12.547540, total_rate: 1609.591815
day : 249, balance: 91622.141074, rate: 12.549259, total_rate: 1622.141074
day : 250, balance: 91634.692053, rate: 12.550978, total_rate: 1634.692053
day : 251, balance: 91647.244750, rate: 12.552698, total_rate: 1647.244750
day : 252, balance: 91659.799167, rate: 12.554417, total_rate: 1659.799167
day : 253, balance: 91672.355304, rate: 12.556137, total_rate: 1672.355304
day : 254, balance: 91684.913161, rate: 12.557857, total_rate: 1684.913161
day : 255, balance: 91697.472738, rate: 12.559577, total_rate: 1697.472738
day : 256, balance: 91710.034036, rate: 12.561298, total_rate: 1710.034036
day : 257, balance: 91722.597054, rate: 12.563018, total_rate: 1722.597054
day : 258, balance: 91735.161794, rate: 12.564739, total_rate: 1735.161794
day : 259, balance: 91747.728254, rate: 12.566461, total_rate: 1747.728254
day : 260, balance: 91760.296436, rate: 12.568182, total_rate: 1760.296436
day : 261, balance: 91772.866340, rate: 12.569904, total_rate: 1772.866340
day : 262, balance: 91785.437965, rate: 12.571626, total_rate: 1785.437965
day : 263, balance: 91798.011313, rate: 12.573348, total_rate: 1798.011313
day : 264, balance: 91810.586383, rate: 12.575070, total_rate: 1810.586383
day : 265, balance: 91823.163176, rate: 12.576793, total_rate: 1823.163176
day : 266, balance: 91835.741691, rate: 12.578516, total_rate: 1835.741691
day : 267, balance: 91848.321930, rate: 12.580239, total_rate: 1848.321930
day : 268, balance: 91860.903892, rate: 12.581962, total_rate: 1860.903892
day : 269, balance: 91873.487577, rate: 12.583685, total_rate: 1873.487577
day : 270, balance: 101887.442849, rate: 13.955272, total_rate: 1887.442849
day : 271, balance: 101901.400033, rate: 13.957184, total_rate: 1901.400033
day : 272, balance: 101915.359129, rate: 13.959096, total_rate: 1915.359129
day : 273, balance: 101929.320137, rate: 13.961008, total_rate: 1929.320137
day : 274, balance: 101943.283058, rate: 13.962921, total_rate: 1943.283058
day : 275, balance: 101957.247891, rate: 13.964833, total_rate: 1957.247891
day : 276, balance: 101971.214637, rate: 13.966746, total_rate: 1971.214637
day : 277, balance: 101985.183297, rate: 13.968660, total_rate: 1985.183297
day : 278, balance: 101999.153870, rate: 13.970573, total_rate: 1999.153870
day : 279, balance: 102013.126357, rate: 13.972487, total_rate: 2013.126357
day : 280, balance: 102027.100758, rate: 13.974401, total_rate: 2027.100758
day : 281, balance: 102041.077073, rate: 13.976315, total_rate: 2041.077073
day : 282, balance: 102055.055303, rate: 13.978230, total_rate: 2055.055303
day : 283, balance: 102069.035447, rate: 13.980145, total_rate: 2069.035447
day : 284, balance: 102083.017507, rate: 13.982060, total_rate: 2083.017507
day : 285, balance: 102097.001482, rate: 13.983975, total_rate: 2097.001482
day : 286, balance: 102110.987372, rate: 13.985891, total_rate: 2110.987372
day : 287, balance: 102124.975179, rate: 13.987806, total_rate: 2124.975179
day : 288, balance: 102138.964902, rate: 13.989723, total_rate: 2138.964902
day : 289, balance: 102152.956541, rate: 13.991639, total_rate: 2152.956541
day : 290, balance: 102166.950096, rate: 13.993556, total_rate: 2166.950096
day : 291, balance: 102180.945569, rate: 13.995473, total_rate: 2180.945569
day : 292, balance: 102194.942959, rate: 13.997390, total_rate: 2194.942959
day : 293, balance: 102208.942266, rate: 13.999307, total_rate: 2208.942266
day : 294, balance: 102222.943491, rate: 14.001225, total_rate: 2222.943491
day : 295, balance: 102236.946634, rate: 14.003143, total_rate: 2236.946634
day : 296, balance: 102250.951695, rate: 14.005061, total_rate: 2250.951695
day : 297, balance: 102264.958675, rate: 14.006980, total_rate: 2264.958675
day : 298, balance: 102278.967573, rate: 14.008898, total_rate: 2278.967573
day : 299, balance: 102292.978391, rate: 14.010817, total_rate: 2292.978391
day : 300, balance: 112308.360990, rate: 15.382600, total_rate: 2308.360990
day : 301, balance: 112323.745697, rate: 15.384707, total_rate: 2323.745697
day : 302, balance: 112339.132512, rate: 15.386814, total_rate: 2339.132512
day : 303, balance: 112354.521434, rate: 15.388922, total_rate: 2354.521434
day : 304, balance: 112369.912464, rate: 15.391030, total_rate: 2369.912464
day : 305, balance: 112385.305603, rate: 15.393139, total_rate: 2385.305603
day : 306, balance: 112400.700851, rate: 15.395247, total_rate: 2400.700851
day : 307, balance: 112416.098207, rate: 15.397356, total_rate: 2416.098207
day : 308, balance: 112431.497672, rate: 15.399466, total_rate: 2431.497672
day : 309, balance: 112446.899247, rate: 15.401575, total_rate: 2446.899247
day : 310, balance: 112462.302932, rate: 15.403685, total_rate: 2462.302932
day : 311, balance: 112477.708727, rate: 15.405795, total_rate: 2477.708727
day : 312, balance: 112493.116632, rate: 15.407905, total_rate: 2493.116632
day : 313, balance: 112508.526648, rate: 15.410016, total_rate: 2508.526648
day : 314, balance: 112523.938775, rate: 15.412127, total_rate: 2523.938775
day : 315, balance: 112539.353013, rate: 15.414238, total_rate: 2539.353013
day : 316, balance: 112554.769363, rate: 15.416350, total_rate: 2554.769363
day : 317, balance: 112570.187825, rate: 15.418462, total_rate: 2570.187825
day : 318, balance: 112585.608398, rate: 15.420574, total_rate: 2585.608398
day : 319, balance: 112601.031085, rate: 15.422686, total_rate: 2601.031085
day : 320, balance: 112616.455883, rate: 15.424799, total_rate: 2616.455883
day : 321, balance: 112631.882795, rate: 15.426912, total_rate: 2631.882795
day : 322, balance: 112647.311820, rate: 15.429025, total_rate: 2647.311820
day : 323, balance: 112662.742959, rate: 15.431139, total_rate: 2662.742959
day : 324, balance: 112678.176211, rate: 15.433252, total_rate: 2678.176211
day : 325, balance: 112693.611578, rate: 15.435367, total_rate: 2693.611578
day : 326, balance: 112709.049059, rate: 15.437481, total_rate: 2709.049059
day : 327, balance: 112724.488655, rate: 15.439596, total_rate: 2724.488655
day : 328, balance: 112739.930365, rate: 15.441711, total_rate: 2739.930365
day : 329, balance: 112755.374191, rate: 15.443826, total_rate: 2755.374191
day : 330, balance: 122772.189996, rate: 16.815805, total_rate: 2772.189996
day : 331, balance: 122789.008104, rate: 16.818108, total_rate: 2789.008104
day : 332, balance: 122805.828516, rate: 16.820412, total_rate: 2805.828516
day : 333, balance: 122822.651233, rate: 16.822716, total_rate: 2822.651233
day : 334, balance: 122839.476253, rate: 16.825021, total_rate: 2839.476253
day : 335, balance: 122856.303579, rate: 16.827326, total_rate: 2856.303579
day : 336, balance: 122873.133209, rate: 16.829631, total_rate: 2873.133209
day : 337, balance: 122889.965146, rate: 16.831936, total_rate: 2889.965146
day : 338, balance: 122906.799387, rate: 16.834242, total_rate: 2906.799387
day : 339, balance: 122923.635935, rate: 16.836548, total_rate: 2923.635935
day : 340, balance: 122940.474789, rate: 16.838854, total_rate: 2940.474789
day : 341, balance: 122957.315950, rate: 16.841161, total_rate: 2957.315950
day : 342, balance: 122974.159418, rate: 16.843468, total_rate: 2974.159418
day : 343, balance: 122991.005194, rate: 16.845775, total_rate: 2991.005194
day : 344, balance: 123007.853276, rate: 16.848083, total_rate: 3007.853276
day : 345, balance: 123024.703667, rate: 16.850391, total_rate: 3024.703667
day : 346, balance: 123041.556366, rate: 16.852699, total_rate: 3041.556366
day : 347, balance: 123058.411374, rate: 16.855008, total_rate: 3058.411374
day : 348, balance: 123075.268691, rate: 16.857317, total_rate: 3075.268691
day : 349, balance: 123092.128317, rate: 16.859626, total_rate: 3092.128317
day : 350, balance: 123108.990252, rate: 16.861935, total_rate: 3108.990252
day : 351, balance: 123125.854497, rate: 16.864245, total_rate: 3125.854497
day : 352, balance: 123142.721053, rate: 16.866555, total_rate: 3142.721053
day : 353, balance: 123159.589919, rate: 16.868866, total_rate: 3159.589919
day : 354, balance: 123176.461095, rate: 16.871177, total_rate: 3176.461095
day : 355, balance: 123193.334583, rate: 16.873488, total_rate: 3193.334583
day : 356, balance: 123210.210382, rate: 16.875799, total_rate: 3210.210382
day : 357, balance: 123227.088493, rate: 16.878111, total_rate: 3227.088493
day : 358, balance: 123243.968916, rate: 16.880423, total_rate: 3243.968916
day : 359, balance: 123260.851652, rate: 16.882735, total_rate: 3260.851652
total=80000.000000, rate: 0.003800
total=73333.333333, rate: 0.004145
total=66666.666667, rate: 0.004560
total=60000.000000, rate: 0.005067
total=53333.333333, rate: 0.005700
total=46666.666667, rate: 0.006514
total=40000.000000, rate: 0.007600
total=33333.333333, rate: 0.009120
total=26666.666667, rate: 0.011400
total=20000.000000, rate: 0.015200
total=13333.333333, rate: 0.022800
total=6666.666667, rate: 0.045600
'''